import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

// Element Plus（优先加载）
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 🔥 Element Plus 官方暗黑主题
import 'element-plus/theme-chalk/dark/css-vars.css'

// 🎨 vilan-admin-v1 极简主题系统
import '@/styles/element-plus-theme.css'

// 🔧 全局样式和工具
import '@/styles/index.scss'
// 🎭 过渡动画系统
import '@/styles/themes/transition.css'
import 'virtual:uno.css'

// 🔥 VXE Table - 强大的表格组件
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'

const app = createApp(App)

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.use(VXETable)
app.mount('#app')